package com.demo.eshop.pdetail.listener;

import com.demo.eshop.pdetail.thread.RequestProcesserThreadPool;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @author: E20160504
 * @date: 2018/10/26
 * @desc
 */
public class InitListner implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        //初始化内存队列线程池
        RequestProcesserThreadPool.init();
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {

    }
}
